#ifndef WORD_FORMAT_H
#define WORD_FORMAT_H

#include "word.h"

class WordFormat  
{
protected:
	char address_;
	bool isSigned_;
	char leading_;
	char trailing_;
public:
	WordFormat(char address = '\0', bool isSigned = false, char leading = 0, char trailing = 0);
	WordFormat(const char *format);
	int setFormatByStr(const char *format, unsigned char index = 0);
	char getAddress() const;
	bool isSigned() const;
	bool isFloat() const;
	char getLeading() const;
	char getTrailing() const;
	bool check(Word word);
};

#endif
